set(COMPONENT_NAME cJSON)

set(srcs
    "cJSON/cJSON.c"
)

set(inc
    "${CMAKE_CURRENT_SOURCE_DIR}/cJSON"
)
# 添加头文件路径
include_directories(${inc})

# 定义组件库的名称和源文件
add_library(${COMPONENT_NAME} ${srcs})

# 链接其他库到组件库
# target_link_libraries(${COMPONENT_NAME} driver)


target_include_directories(${COMPONENT_NAME} PUBLIC ${inc})